/*
 * Titulo: DoublyListNode.java
 * Autor: Oswaldo Ceballos Zavala
 * Descripcion:
 * 
 * Universidad Autonoma de Yucatan
 * 
 */
package aerodromo.util.estructurasDatos.lista;

/**
 *
 * @author Oswaldo.C
 */
public class DoublyListNode<T> 
        extends ListNode<T>{
    
    private DoublyListNode<T> prev;

    
    public DoublyListNode( T newElement , DoublyListNode<T> prevNode, DoublyListNode<T> nextNode ){
        super ( newElement , nextNode );
        this.prev = prevNode;
    }
    
    public DoublyListNode ( T newElement ){
        this ( newElement , null, null );
    }
    
    /**
     * @return the prev
     */
    public DoublyListNode<T> getPrev() {
        return prev;
    }

    /**
     * @param prev the prev to set
     */
    public void setPrev(DoublyListNode<T> prev) {
        this.prev = prev;
    }
    
    
    
    
} //fin clase DoublyListNode
